from django.urls import path
from user.views import register,register_post,login,info,logout,all_order,upload

# 命名空间
app_name = 'user'
urlpatterns = [
    path('register/',register,name='register'),
    path('register_post/',register_post,name='register_post'),
    # 登录接口
    path('login/',login,name='login'),
    # 用户信息接口
    path('info/',info, name='info'),
    # 退出登录
    path('logout/',logout,name='logout'),
    # 全部订单
    path("all_order/<int:page_num>/",all_order,name="all_order"),
    path("upload/",upload,name="upload")
]